package com.yaolisheng.controller;

import com.yaolisheng.pojo.SysConfig;
import com.yaolisheng.service.SysClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yaolisheng
 * @version 1.0
 * @date 2021/5/5 12:16
 */

@RestController
@RequestMapping()
public class SysController {
    @Autowired
    private SysClientService sysClientService;
    @RequestMapping("/get")
    public List<SysConfig> queryAll() {
        return sysClientService.queryAll();
    }

    @RequestMapping("/po")
    public String test(){
        return "hello word！！！";
    }
}
